﻿
module Sustainalytics.Tools.Admin {


    import Common = Sustainalytics.Common;
    import AdminAccounts = Sustainalytics.Accounts.Admin;
    import CommonAdmin = Sustainalytics.Common.Admin;

    export class FtpClientReportController {

        public $scope: ng.IScope;

        private notificationFactory: Common.INotificationFactory;
        private $q: ng.IQService;

        constructor(
            $scope: ng.IScope,
            $rootScope,
            $q: ng.IQService,
            $location: ng.ILocationService,
            $http: ng.IHttpService,
            private AccountsService: AdminAccounts.AccountsService,
            private ReportFTPService: IReportFTPService,
            notificationFactory: Common.INotificationFactory) {

            var ctx = this;
            $scope['reportFTP'] = this;

            ctx.$q = $q;
            ctx.$scope = $scope;
            ctx.notificationFactory = notificationFactory;

        }

    }

    // register controller with Tools Angular module
    var mod = angular.module(toolsAdminModuleName);

    mod.controller('FtpClientReportController',
        ['$scope', '$rootScope', '$q', '$location', '$http', 'AccountsService', 'ReportFTPService', 'notificationFactory', Sustainalytics.Tools.Admin.FtpClientReportController]);

}  